<?php

namespace models\Exception\Business;

use Exception;


class OrderException extends Exception
{
    const ORDER_IS_NOT_EXISTS = '订单不存在';

    const ORDER_IS_NOT_EXISTS_NO = '404';

    const ORDER_CREATE_FAILURE = '订单创建失败';

    const ORDER_CREATE_FAILURE_NO = '422';

    const ORDER_EDIT_FAILURE = '订单编辑失败';

    const ORDER_EDIT_FAILURE_NO = '422';

    const ORDER_ID_IS_EMPTY = '订单编号不能为空';

    const ORDER_ID_IS_EMPTY_NO = '400';

    const ORDER_OPERATE_FAILURE = '订单操作失败';

    const ORDER_OPERATE_FAILURE_NO = '400';

    const ORDER_STATS_WAIT = '商品已发货,请等待收到货后发起退货操作';

    const ORDER_STATS_WAIT_NO = '400';

    const ORDER_STATS_ALREADY = '退货失败，如需退货请联系客服';

    const ORDER_STATS_ALREADY_NO = '400';

    const ORDER_REFUND_FAILURE = '退款申请失败，请联系客服';

    const ORDER_REFUND_FAILURE_NO = '400';

    const ORDER_RETURN_FAILURE = '退货申请失败，请联系客服';

    const ORDER_RETURN_FAILURE_NO = '400';

    const ORDER_CONFIRM = "订单状态不允许确认收货";
    const ORDER_CONFIRM_NO = "400";

    const ORDER_DENIED = "无权操作别人的订单";
    const ORDER_DENIED_NO = "403";

    const INVALID_ORDER_AMOUNT = "无效订单金额";
    const INVALID_ORDER_AMOUNT_NO = "400";

    const ORDER_STATUS_OPERATE = "订单状态不符合操作";
    const ORDER_STATUS_OPERATE_NO = "400";

    const ORDER_STATS_WAIT_GOODS = '请先签收领取您的快递，再进行退货操作';
    const ORDER_STATS_WAIT_GOODS_NO = '400';

    const ORDER_STATS_SIGN_ALREADY = "订单已签收，无法查看物流信息";
    const ORDER_STATS_SIGN_ALREADY_NO = '400';

    const ORDER_STATS_FAIL = "下单失败";
    const ORDER_STATS_FAIL_NO = '400';

    const ORDER_TRADE_SN_EMPTY = "上游订单编号为空";
}
